<?php namespace App\Providers;

use App\Services\AliyunKafkaService;
use Illuminate\Support\ServiceProvider;

class AliyunKafkaProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('AliyunKafka', function($app) {
            return new AliyunKafkaService();
        });
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return ['AliyunKafka'];
    }
}
